home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7389 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: midland.co.nz!usenet
  2. From: lowefam@igrin.co.nz (Jarrod S Lowe)
  3. Newsgroups: comp.lang.c++,comp.os.msdos.programmer
  4. Subject: Timer (0x1C) Interrupt exactly 18.2 seconds?
  5. Date: Fri, 23 Feb 1996 00:57:48 GMT
  6. Organization: Midland Internet Limited, Network Services
  7. Message-ID: <4givrv$cim@midland.co.nz>
  8. NNTP-Posting-Host: lowefam.igrin.co.nz
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hi
  12.  
  13. I have a C++ Program (on DOS) in which a function is attached to the
  14. Timer (0x1C) Interrupt.
  15.  
  16. The function has a static int to count the number of times it has been
  17. called. Every 'x' calls, It executes another function.
  18.  
  19. 'x' is 546, which one would expect to result in the function being
  20. called every 30 seconds. However, it is called every 29 point
  21. something seconds. Over 5 minutes you can see it has drifted. If I had
  22. one to 'x' (now 547) it is called every 30 point something seconds -
  23. the same problem in reverse.
  24.  
  25. This program is expected to run, continually, for YEARS - so a drift
  26. that shows up in 5 minutes will make it unusable.
  27.  
  28. Does anybody have any ideas WHY this is happening?
  29.  
  30. Thanks
  31. Jarrod S Lowe
  32. (lowefam@igrin.co.nz)
  33.  
  34.